package com.sunny.example.hwrealexame;

import java.util.Scanner;

/**
 * 求水仙花数
 * 求一个n位数有多少个水仙花数
 */
public class Exame6_求水仙花数 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int n = scanner.nextInt();
            int output = scanner.nextInt();
            if (n < 3 || n > 7) {
                System.out.println("-1");
                continue;
            }

            int[] elements = {1,2,3,4,5,6,7,8,9,0};
            //比如三位数的水仙花数
            //153 = 1^3+5^3+3^3
            while (n>0){
                for (int i=0;i< elements.length;i++){
                    int e = elements[i];
                }
            }


        }

    }

}
